home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
SPACE 2
/
SPACE - Library 2 - Volume 1.iso
/
apps
/
573
/
pathmap
/
pathmap.doc
next >
Wrap
Text File
|
1985-11-19
|
7KB
|
133 lines
PathMap v1.0 November 12, 1991
The Application Locator
INTRODUCTION
GEM's "Install Application" feature can be very useful. It
saves typing in ARChive names you want to extract; it saves scrolling
through file selectors to load the file you want to edit...Actually its
uses are nearly endless. Except for one problem: your program must
either be in the root directory of disk A (A:\) or in the same
directory as your data file. This fact can virtually cut Install
Application's usefulness down to zero. (For a more in-depth explanation
on the Install Application refer to the Atari ST User's manual.)
Fortunately, Atari decided to fix this for TOS versions 1.04 and
above. But what about those of us with TOS 1.0 or 1.02?
This is where "PathMap" comes in. PathMap will install any
program as an application. On top of this, it also includes the
location of the program; now your program can be in any folder in any
drive.
PathMap works by appending the application information
(including its location, GEM doesn't do that) about your program to the
DESKTOP.INF file of your choice. The next time (and every time after)
you boot from that disk, GEM will load the application info into RAM.
Allowing you to run a program by double-clicking on any file with the
extender you specify to PathMap.
PathMap
To run PathMap double-click on its icon from the GEM desktop.
PathMap will run on any ST, STe, or TT. "Why would you want to use it
on the STe or TT?", you ask. Because, also unlike GEM, PathMap allows
you to install multiple document types to a single application. It
works in High and Medium resolution. When you are presented with the
"PathMap" dialog box choose "Install Application" to proceed, or "EXIT"
to quit the program.
After selecting the "Install Application" button you will be
presented with a file selector. From here choose the DESKTOP.INF file
in the root directory of your boot disk. Click "OK" to proceed, and
"Cancel" to return to the main menu. If the file does not exist, or it
is a "read-only" file you file be informed and return to the file
selector.
If you selected "OK" you will now be looking at another file
selector. This time choose the program you want your data file to run.
This is the equivelant to the program you have "selected" when
installing an application via GEM. Again, click "OK" to proceed with
the installation, or "Cancel" to return to the main menu. If the file
does not exist you will be told so by a dialog box; you will then be
returned to the second file selector.
After selecting "OK" (from the file selector) a dialog box will
appear. First, select the type of program that your application is.
Choose GEM if it is a "PRG" program (ie. it uses alert boxes, or menus
and the mouse to get input, such as this program). Choose TOS if it is
a "TOS" type program, (ie. one that does NOT use menus, dialogs, etc.,
and does also not receive command-line input). Finally, choose TTP if
your program is a "Tos-takes-parameters" program, (ie. it does not use
alerts, menus, etc., but DOES take command-line arguments). To choose
the "Document Type" to which the application will apply click on any
one of the three underscore characters (_) just to the right of the
"DOCUMENT TYPE:" string. Now enter three characters of text (eg. DOC
for 1ST WordPlus, or ARC for ARC.TTP). Choose "OK" to confirm the
entire process or choose "Cancel" to return to the main menu. Remember
you must first BOOT with the DESKTOP.INF file you just altered before
the application will be functional.
Removing an application installed by PathMap is the same as
doing so if GEM had done the job: delete the DESKTOP.INF file by
dragging it to the Trash icon. Remember that if you delete a
DESKTOP.INF file in the hopes of removing an application DON'T save the
desktop if you have booted with the now-deleted DESKTOP.INF file. The
application will be installed in RAM and would be saved to the new
DESKTOP.INF file.
Should you install two different applications, each with the
same "DOCUMENT TYPE" the one installed _later_ will be the one GEM
uses. For example, if you installed an application to the program, 1ST
WordPlus using the extender DOC, and then installed an application to a
file view utility clicking on any DOC file would load the file viewer,
NOT 1ST WordPlus. Because of this it is not always necessary to delete
DESKTOP.INF files when you want to install another application.
On a related note it is perfectly all right to install many
different DOCUMENT TYPEs to the same program. To do this, just choose
INSTALL APPLICATION (from the main menu) over and over until everything
is installed like you want. This is especially useful for file view
utilities. You could install an application for the many different text
file extenders (eg. TXT, ASC, DOC).
BUG(S)
There is only one known bug in PathMap, and is fairly major; it
gets back to the original problem of not being able to find files. I'm
not sure if it really qualifies as a bug of PathMap or GEM. When you
have an application not located in "A:\" or the same directory as your
data file (which you should--because that is why you're using PathMap)
the program you run might not know where its RSC (or CFG, DAT, etc.)
files are. It "thinks" it's being run from the directory that contains
the data file. In the event that the program has, included in its
binary code, the disk to search for its RSC (and other) files on there
is away around the above problem. Using a binary file editor it is
possible to replace the disk/path string, such as A:\, with the
programs actual location, such as F:\.
Because of the above problem I considered not releasing this
program. However, with the turn toward imbedded resources (PathMap's
resource is imbedded), as well as the many programs, such as ARC.TTP
(or any other non-GEM programs) which have no resource or config files
I decided in favour of releasing it. If anyone knows how to tell GEM
that a program is being run from the folder it's IN, not the folder
it's being run FROM, please let me know!
PRICE, etc.
PathMap is provided as FREEWARE. It costs nothing, copy it,
upload it, download it, whatever you want as long as you neither charge
for it, or modify the program (or this document) in any way. I would
like to hear from anyone who likes (or doesn't) like PathMap. I would
appreciate any suggestions (especially a way to fix the above problem!)
for future versions. Please report ALL bugs to me; don't assume someone
else already has.
ADDRESSES
John Perry
891 Palmerston Ave.
Winnipeg, Man.
CANADA R3G 1J6
Internet: marco@sys6626.bison.mb.ca
CompuServe: >INTERNET:marco@sys6626.bison.mb.ca
LEGAL STUFF
I make no guarantee as to the performance of this program and
take no responsibility for any damage it may cause you, your computer,
your data, etc. This program and this document file are copyright
(C)1991 John Perry.